package com.premjit.examples.classStructure;

import com.premjit.logger.Logger;

public class BaseClass {
	protected double pie=3.14;
	
	//overloaded methods
	public int calculateArea(int a, int b){
		Logger.debug("In BaseClass.calculateArea("+a+", "+b+")");
		return a*b;
	}
	
	public double calculateArea(int r){
		Logger.debug("In BaseClass.calculateArea("+r+")");
		return pie*r*r;
	}
	
	//overridden method
	public void calculatePerimeter(){
		Logger.debug("In BaseClass.calculatePerimeter");
	}

}
